MEMS-based method and system for tracking a femoral frame of reference

ABSTRACT

A system for tracking a femoral frame of reference in computer-assisted surgery comprises a sensor unit. The sensor unit is adapted to be secured to the femur. The sensor unit comprises accelerometer and gyroscope sensors that produce orientation data. A processing unit receives gyroscope and accelerometer data. The processing unit comprises a gyroscope-data calculator to provide calculated acceleration data resulting from movements of the femur, an accelerometer-data calculator to calculate measured acceleration data resulting from movements of the femur, and an acceleration comparator to relate an orientation of the sensor unit to the femur to define a femoral frame of reference. The femoral frame of reference is defined from the comparison between the calculated and the measured acceleration data. A sensor orientation interface provides orientation data for the femur from a tracking of the femoral frame of reference. A method for tracking a femoral frame of reference is also provided.

CROSS-REFERENCE TO RELATED APPLICATION

The present patent application is a continuation of U.S. non-provisional patent application Ser. No. 12/843,375, filed on Jul. 10, 2010 claims priority on U.S. Patent Application No. 61/309,585, filed on Mar. 2, 2010, and incorporated herein by reference.

FIELD OF THE APPLICATION

The present application relates to computer-assisted orthopedic surgery using microelectromechanical sensors (MEMS).

BACKGROUND OF THE ART

One of the essential steps in navigating a bone with MEMS sensors is to locate the bone relative to the sensors. For the femur, the orientation of the sensor relative to the lateral axis can be constrained mechanically, for instance, with claws inserted under the posterior condyles so that the sensor lateral axis is aligned with the lateral axis of the bone. However, the orientation of the sensor relative to the femoral mechanical axis is more complex, as one of the anatomical landmarks defining the axis, the femoral head, is hidden inside the hip.

In an optical navigation system, the femoral head is located by moving the femur and, assuming the pelvis is stable, finding the fixed pivot point around which the bone rotates. This relies on the optical sensor having six degrees of freedom (DOF), i.e., 3DOF in position and 3DOF in orientation.

However, in a MEMS system, sensors do not automatically provide 6DOF. The 6DOF can be retrieved by integrating gyroscope and accelerometer readings—a standard technique called “dead reckoning”—but this technique is very sensitive to sensor errors and thus ill suited to low-cost sensors. Other gyroscope-based methods for retrieving the axis of the femur based on an axial rotation kinematic exist. However, such methods require a very specific and not natural leg motion, which might be difficult to apply and constrain.

SUMMARY OF THE APPLICATION

It is therefore an aim of the present disclosure to provide a novel method and system for defining and tracking a femoral coordinate system from MEMS-based data.

Therefore, in accordance with the present application, there is provided a system for tracking a femoral frame of reference in computer-assisted surgery, comprising: a sensor unit adapted to be secured to the femur, the sensor unit comprising an accelerometer sensor and a gyroscope sensor both producing orientation data; a processing unit receiving gyroscope data and accelerometer data and comprising a gyroscope-data calculator for providing calculated acceleration data from at least the gyroscope data resulting from movements of the femur; an accelerometer-data calculator for calculating measured acceleration data from the accelerometer data resulting from movements of the femur; and an acceleration comparator for relating an orientation of the sensor unit to the femur to define a femoral frame of reference, from the comparison between the calculated acceleration data and the measured acceleration data; a sensor orientation interface for providing orientation data for the femur from a tracking of the femoral frame of reference.

Further in accordance with the present application, there is provided a method for tracking a femoral frame of reference with a sensor unit comprising an accelerometer sensor and a gyroscope sensor secured to a femur, comprising: obtaining gyroscope readings and accelerometer readings resulting from movements of the femur; calculating acceleration data at least from the gyroscope readings; measuring acceleration data from the accelerometer readings; comparing the calculated and the measured acceleration data; relating an orientation of the sensor unit to the femur using the comparison to define a femoral frame of reference; and tracking the femoral frame of reference from the gyroscope readings and from the accelerometer readings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart illustrating a method for defining a femoral coordinate system with respect to a MEMS-based sensor unit, in accordance with an embodiment of the present application; and

FIG. 2 is a block diagram illustrating a system for defining a femoral coordinate system with respect to a MEMS-based sensor unit, in accordance with another embodiment of the present application.

DESCRIPTION OF THE EXEMPLARY EMBODIMENTS

MEMS is used herein to refer to micro-electro-mechanical sensors, such as accelerometers and gyroscopes.

CAS is used herein to refer to computer-assisted surgery.

Referring to the drawings and more specifically to FIG. 1, there is illustrated at 1 a method for defining a femoral coordinate system with respect to a MEMS-based sensor unit, for subsequent tracking of the femoral coordinate system, or other femoral frame of reference (e.g., the mechanical axis of the femur). As a non-restrictive example, the femoral coordinate system defined with the method described hereinafter may be used to perform subsequent operations related to the femur, for instance as described in U.S. patent application Ser. No. 12/410,884 and corresponding PCT application publication no. WO 2009/117833, incorporated herein by reference.

The femoral coordinate system obtained with the method 1 may be used in computer-assisted surgery (CAS), in performing alterations to the femur, to the pelvis and/or to the tibia, and in providing surgical parameters to the operator, such as limb length data. Accordingly, the method 1 may be used to find the length of the femur, i.e., the distance between the center of the femoral head and the mechanical axis entry point, in addition to tracking the femoral coordinate system from the orientation of the MEMS-based sensor unit 10 (FIG. 2).

The MEMS-based sensor unit has both a gyroscope sensor 12 and an accelerometer sensor 14 (FIG. 2), and is connected to a CAS system to provide readings from both types of sensors, by which the femoral coordinate system is defined and subsequently tracked. The gyroscope sensor 12 and the accelerometer sensor 14 each provide at least orientation data along three degrees of freedom.

According to step 2, the sensor unit 10 is secured to the femur. In an embodiment, the sensor unit 10 is secured at the mechanical entry point at the knee. When secured to the knee end of the femur, it is assumed that the movements of the sensor unit 10 are on a sphere centered on the center of the femoral head with a radius equal to the length of the femur. The best sphere that would fit the gyroscope and accelerometer readings is then found as described below.

Two elements to obtain are the orientation of the sensor unit 10 relative to a femoral coordinate system, and the radius of the sphere. If the transformation between the femur and the sensor coordinate system is represented by three successive rotations—λ₁, λ₂ and λ₃—around the x, y and z axes respectively, four parameters need to be optimized. However, when securing the sensor unit 10 to the femur, the sensor unit 10 may be aligned with the femoral posterior condyles to constrain the rotation, so that the X axis of the sensor unit 10, when projected on the femoral transverse plane, matches the X axis of the femur—λ₃ is always 0 and only three parameters need to be optimized (the radius, λ₁ and λ₂). Other relations between the sensor unit 10 and the femur are considered (e.g., using other anatomical landmark), as long as the position and orientation of the sensor unit 10 with respect to the mechanical entry point of the femur is known.

According to step 3 in FIG. 1, specific movements of the femur are performed. The gyroscope sensor 12 of the MEMS-based sensor unit 10 gives information about changes in orientation, in the form of angular velocities. The specific movements are a stopped sequence of rotations of the femur, to discriminate the effect of gravity on the measured accelerations, as described hereinafter.

In order to compute the absolute sensor orientation in world over the trajectory, the initial orientation must be known. If the sensor unit 10 is stable, φ, ζ and θ can be computed from the readings of the accelerometer sensor 14. φ, ζ and θ are respectively the angles between the X-, Y- and Z-axes and the ground. The afore-mentioned stopped sequence of rotations allows the φ, ζ and θ angles of the gyroscope to be reinitialized. If it is assumed that the initial yaw (ψ₀) is 0, the initial orientation of the sensor unit 10 in the world Sensor_(in world) ₀ may be computed.

According to step 4, an acceleration of the femur is calculated from the gyroscope sensor readings, and from the initial orientation of the sensor unit 10 (e.g., obtained from the accelerometer sensor 14 being stable). By the properties of the gyroscope sensor 12, an angular displacement of υ*θ along the three sensor axes corresponds to an instantaneous rotation of θ radians about the unit vector υ. This also applies to angular velocities. The angular velocity may be extracted during the interval and the axis around which the rotation is applied with the following equations:

ω_(t) = (g_(x), g_(y), g_(z))_(t) $\upsilon_{t} = \frac{\left( {g_{x},g_{y},g_{z}} \right)_{t}}{\omega_{t}}$

If it is assumed that ω_(t) is constant over the interval t, the angular displacement during that interval is:

$\theta_{t} = {\frac{\omega_{t} + \omega_{t - 1}}{2}\Delta\; t}$

If this rotation expressed in terms of axis and angle is converted to a rotation matrix R_(t), the new orientation of the sensor unit 10 is computed with the following equation: Sensor_(in world) _(t) =R _(t)·Sensor_(in world) _(t−1)

By convention, it is assumed that a particle (reference point on femur) is at the position of the mechanical axis entry point and is aligned with the femoral coordinate system. The orientation of the sensor unit 10 in the particle coordinate system (Sensor_(in particle)) corresponds directly to the mechanical axis alignment—defined by λ₁ and λ₂—and is constant for all trajectories. It can be expressed by the following matrix:

${Sensor}_{{in}\mspace{14mu}{particle}} = \begin{bmatrix} {\cos\left( \lambda_{1} \right)} & {{\sin\left( \lambda_{1} \right)}*{\sin\left( \lambda_{2} \right)}} & {{\cos\left( \lambda_{2} \right)}*{\sin\left( \lambda_{1} \right)}} \\ 0 & {\cos\left( \lambda_{2} \right)} & {- {\sin\left( \lambda_{2} \right)}} \\ {- {\sin\left( \lambda_{1} \right)}} & {{\cos\left( \lambda_{1} \right)}*{\sin\left( \lambda_{2} \right)}} & \left. {{\cos\left( \lambda_{1} \right)}*{\cos\left( \lambda_{2} \right)}} \right\rbrack \end{bmatrix}$

This transformation applies if the rotation is constrained by aligning the sensor unit 10 with the posterior condyles and should be modified if it is constrained by aligning, for instance, the sensor unit 10 with the antero-posterior axis.

With the relation between the sensor unit 10 and the particle being known, the orientation of the particle in the world coordinate system can be computed directly from the sensor unit's orientation using: Particle_(in world) _(t) =Sensor_(in world) _(t) *Particle_(in sensor) Particle_(in world) _(t) =Sensor_(in world) _(t) *Sensor_(in particle) ⁻¹

By definition, the femoral mechanical axis corresponds to the Z axis of the femoral coordinate system, i.e.:

${MechAxis}_{{in}\mspace{14mu}{world}_{t}} = {{Particle}_{{in}\mspace{14mu}{world}_{t}}*\begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}}$ where MechAxis_(in world) _(t) is a 3×1 vector.

If it is assumed that the center of the femoral head is at the origin of the world, i.e., (0,0,0), the position of the particle is given by: p _(t)=−radius*MechAxis_(in world) _(t)

The calculated acceleration of the particle is calculated using the equations of motion:

$\upsilon_{t} = {\frac{2*\left( {p_{t} - p_{t - 1}} \right)}{\Delta\; t} - \upsilon_{t - 1}}$ $a_{t} = \frac{\upsilon_{t} - \upsilon_{t - 1}}{\Delta\; t}$

wherein a_(t) is the tangential acceleration (or linear acceleration [i.e., assuming that the centripetal acceleration is not part of the linear acceleration)].

In order to calculate these values, estimated values are provided for the femur radius and for the initial sensor trajectory. It is assumed that the initial velocity (υ₀) and acceleration (a₀) are 0.

According to step 5, the particle acceleration measured from the gyroscope sensor 12 is compared to the readings of the accelerometer sensor 14, to determine the error (i.e., cost). The cost of the solution candidate is based on the error between the accelerations observed by the accelerometers (a_(abs)) and the ones calculated from the particle motion (calculated accelerations). The acceleration perceived by the sensor unit 10 includes the acceleration of the particle as well as the gravitational acceleration, whereby the stopped sequence of motions are performed with the femur to discriminate the gravitational accelerations from the other accelerations. Using the calculated orientation of the sensor unit 10, the expected acceleration (a_(exp)) is obtained by projecting these two accelerations on the sensor axes as follows: a _(x exp) _(t) =(0,0,G)·Sensor_(x in world) _(t) +a _(x) _(t) ·Sensor_(x in world) _(t) a _(y exp) _(t) =(0,0,G)·Sensor_(y in world) _(t) +a _(y) _(t) ·Sensor_(y in world) _(t) a _(z exp) _(t) =(0,0,G)·Sensor_(z in world) _(t) +a _(z) _(t) ·Sensor_(z in world) _(t) where G is the gravitational constant.

The cost is defined as the least square error of the difference between the calculated and measured accelerations, as expressed by the equation:

${cost} = {\sum\limits_{t = 0}^{n - {\Delta\; t}}\sqrt{\left( {a_{x\mspace{14mu}{obs}_{t}} - a_{x\mspace{14mu}\exp_{t}}} \right)^{2} + \left( {a_{y\mspace{14mu}{obs}_{t}} - a_{y\mspace{14mu}\exp_{t}}} \right)^{2} + \left( {a_{z\mspace{14mu}{obs}_{t}} - a_{z\mspace{14mu}\exp_{t}}} \right)^{2}}}$ where n is the duration of the trajectory and Δt is the time interval between two acquisitions.

Because some data, or parts of data, are more likely to be exact or discriminative, weighting factors are applied to the cost. Since the error in orientation (drift) increases with the time, more weight is given to the error at the beginning of the trajectory. The cost equation then becomes:

${cost} = {\sum\limits_{t = 0}^{n - {\Delta\; t}}{\frac{n - t}{n}*\sqrt{\left( {a_{x\mspace{14mu}{obs}_{t}} - a_{x\mspace{14mu}\exp_{t}}} \right)^{2} + \left( {a_{y\mspace{14mu}{obs}_{t}} - a_{y\mspace{14mu}\exp_{t}}} \right)^{2} + \left( {a_{z\mspace{14mu}{obs}_{t}} - a_{z\mspace{14mu}\exp_{t}}} \right)^{2}}}}$

Another way to improve the cost function is to penalize solutions that do not correspond to realistic—or possible—setups, or that do not fit complementary information. In the method, unlikely—or impossible—radii and mechanical axis alignments are penalized. If the radius is below or over a defined threshold (for example, below 40 cm or over 60 cm), a penalization, proportional to the difference, is applied. The penalization is added to the total cost and is expressed as follows: if radius>Radius_(max)−cost_(radius)=(Radius_(max)−radius)*k _(radius) if radius<Radius_(min)−cost_(radius)=(radius−Radius_(min))*k _(radius)

where k_(radius) is the radius penalization constant. The same penalization if applied if λ₁ or λ₂ are over a defined threshold.

As an alternative method for calculating the tangential acceleration (step 4) and comparing this alternative tangential acceleration with the readings of the accelerometer sensor 14, the tangential acceleration a_(t) of the particle may be calculated without using the equations of motion described above, and thus without depending on acquisition time.

This alternate calculation method and cost function stem from the principle that, when a particle is rotating around a fixed center of rotation, the perceived acceleration comes from three different sources. One first source is the centripetal acceleration, {right arrow over (a_(c))}. The centripetal acceleration is a function of current angular velocity and of the radius, namely the acceleration required to keep the moving particle on its spherical trajectory. A second source is the tangential acceleration, {right arrow over (a_(t))}. This is the acceleration required to change the angular velocity of the particle through time. A third source is gravity, {right arrow over (a_(g))}. While not an actual force affecting the displacement of the particle (if it were the case, it would not stay on a spherical trajectory), it is nonetheless perceived by the accelerometer sensor 14. This is function of G and the current tilt attitude of the device.

According to the alternative steps 4 and 5, it is required to find values of λ₁ and λ₂ which, if applied to the sensor unit 10, will orient it so that its Z axis is aligned with the mechanical axis.

Accordingly:

$\mspace{20mu}{\overset{\rightarrow}{{MechAxis}_{{in}\mspace{14mu}{sensor}}} = {{particle}_{{in}\mspace{14mu}{sensor}}*{MechAxis}_{{in}\mspace{14mu}{particle}}}}$ $\mspace{20mu}{\overset{\rightarrow}{{MechAxis}_{{in}\mspace{14mu}{sensor}}} = {{sensor}_{{in}\mspace{14mu}{particle}}^{- 1}*\overset{\rightarrow}{{MechAxis}_{{in}\mspace{14mu}{particle}}}}}$ $\overset{\rightarrow}{{MechAxis}_{{in}\mspace{14mu}{sensor}}} = {\quad{{{\begin{bmatrix} {\cos\left( \lambda_{1} \right)} & 0 & {- {\sin\left( \lambda_{1} \right)}} \\ {{\sin\left( \lambda_{1} \right)}*{\sin\left( \lambda_{2} \right)}} & {\cos\left( \lambda_{2} \right)} & {{\cos\left( \lambda_{1} \right)}*{\sin\left( \lambda_{2} \right)}} \\ {{\cos\left( \lambda_{2} \right)}*{\sin\left( \lambda_{1} \right)}} & {- {\sin\left( \lambda_{2} \right)}} & \left. {{\cos\left( \lambda_{1} \right)}*{\cos\left( \lambda_{2} \right)}} \right\rbrack \end{bmatrix}\begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}}\mspace{20mu}\overset{\rightarrow}{{MechAxis}_{{in}\mspace{14mu}{sensor}}}} = \begin{bmatrix} {- {\sin\left( \lambda_{1} \right)}} \\ {{\cos\left( \lambda_{1} \right)}*{\sin\left( \lambda_{2} \right)}} \\ {{\cos\left( \lambda_{1} \right)}*{\cos\left( \lambda_{2} \right)}} \end{bmatrix}}}$

From this estimated mechanical axis, and the instantaneous readings of the gyroscope sensor 12 ({right arrow over (g_(t))}), it is possible to extract the angular velocity around the spherical trajectory (ω_(t)′). This is done by subtracting the component of the perceived angular velocity around the mechanical axis. In order to achieve this, the perceived rotation vector must be projected onto the tangential plane. ω_(t)′=|{right arrow over (g _(t))}−proj({right arrow over (g _(t))},MechAx{right arrow over (i)}s_(in sensor))| ω_(t)′=|{right arrow over (g _(t))}−(MechAx{right arrow over (i)}_(in sensor)*(MechAx{right arrow over (i)}s_(in sensor)·{right arrow over (g _(t))}))|

Knowing the amplitude of the angular body ω_(t)′ and then using the estimated radius which is fixed in time, the current centripetal acceleration applied to the particle may be extracted. {right arrow over (a _(ct))}=rω′ _(t) ²*MechAx{right arrow over (i)}s_(in sensor)

As described earlier, it is possible from an initial inclination of a particle, to use the angular velocities to track the orientation of the particle through time. In the present case, the inclination of the sensor unit 10 may be calculated as: ϕ_(i)=Sensor_(in world) _(x) _(s) _(t) ζ_(i)=Sensor_(in world) _(y) _(s) _(t) θ_(i)=Sensor_(in world) _(z) _(s) _(t)

Knowing the inclination of the sensor unit 10 at a moment, the acceleration perceived by the sensor unit 10 due to gravity can be calculated.

$\overset{\rightarrow}{a_{g_{t}}} = {G*\begin{bmatrix} {\sin\left( \phi_{t} \right)} \\ {\sin\left( \zeta_{t} \right)} \\ {\sin\left( \theta_{t} \right)} \end{bmatrix}}$

As mentioned earlier, it is expected that, at all times, the acceleration perceived by the MEMS sensor unit 10 ({right arrow over (a_(p))}) should be the sum of the gravity ({right arrow over (a_(g))}), the centripetal acceleration ({right arrow over (a_(c))}) and the tangential acceleration (a_(i)′). With reliable estimates of both the gravity and centripetal acceleration values, the tangential acceleration vector may be calculated.

For the comparison of step 5, by definition, the tangential acceleration vector should be perpendicular to the mechanical axis. A suitable cost function can thus be described as the sum of the perceived tangential acceleration projected onto the mechanical axis.

${cost} = {\sum\limits_{t = 0}^{n - {\Delta\; t}}{\left( \overset{\rightarrow}{a_{t_{t}}} \right)\mspace{11mu}\bullet\overset{\rightarrow}{\mspace{11mu}{MechAxis}_{{in}\mspace{14mu}{sensor}}}}}$ ${cost} = {\sum\limits_{t = 0}^{n - {\Delta\; t}}{\left( {\overset{\rightarrow}{a_{p_{t}}} - \overset{\rightarrow}{a_{g_{t}}} - \overset{\rightarrow}{a_{ct}}} \right)\mspace{11mu}\bullet\mspace{11mu}\overset{\rightarrow}{{MechAxis}_{{in}\mspace{14mu}{sensor}}}}}$

Minimizing this cost function will give the λ₁ and λ₂ values corresponding to the axis between the acceleration sensor and the spherical pivot point. In the present case, where the accelerometer sensor 14 is positioned at the mechanical axis entry point, this equates to the femoral mechanical axis.

According to step 6, the femoral coordinate system is obtained, by the orientation of the sensor unit 10 being known relative to the femur. The femoral coordinate system is obtained by numerical optimization from either one of the cost functions described above depending on the method for calculating the particle acceleration, or any other appropriate cost function. The numerical optimization may be performed using the Matlab™ fminsearch function, or using known algorithms such as gradient descent, simulated annealing, etc. In addition to obtaining the orientation of the sensor unit 10 relative to the femur, additional data may be obtained in 6, such as the real trajectory of the particle, and the radius of the particle. The radius of the particle may be used subsequently to calculate parameters such as limb length discrepancy.

According to step 7, the femoral coordinate system is displayed, as tracked from the readings of the sensor unit 10. For instance, the femoral coordinate system is displayed as axes on a screen. Alternatively, the femoral coordinate system is displayed by way of LED indicators showing a proper orientation of the tools connected to the sensor unit 10. For instance, the sensor unit 10 may be connected to a cutting block, as described in U.S. patent application Ser. No. 12/410,884 and corresponding PCT application publication no. WO 2009/117833. A proper orientation of the cutting block in terms of varus-valgus may be displayed by confirmatory lights on the sensor unit 10/cutting block as the orientation of the cutting block is adjusted.

In order to optimize the precision of the method, the following optimizations may be applied during the steps of the method 1:

Movements may be short in order to reduce the drift in orientation (due to the integration of the noisy gyroscope readings).

Movements may be in at least two directions (for example, horizontal and vertical) so that they fit only one sphere, and thus only one solution exists.

It may be desired to use filters to reduce noise in the accelerometer and gyroscope readings. The filtering may be done directly by the sensor unit 10, using hardware components, or within a processing unit, as described hereinafter.

The acquisition rate should be fast enough to allow filtering and to respect the assumption that the acceleration is constant over some time intervals.

The sensor unit 10 must be stable at the beginning of each sequence in order to know its initial inclination (having the device stable at the end of the sequence could also be used to improve the algorithm).

The sensor unit 10 is aligned in rotation with the femur, which allows the sensor orientation of the femur coordinate system from λ₁ and λ₂ to be calculated.

The accelerometer sensor 14 may be fixed at the position of the mechanical axis entry point.

Large accelerations might help discriminate between solutions if the noise does not increase with the acceleration.

The cost function may be improved, for instance by adding weighting factors (e.g., add weight to trajectories where the final orientation computed from gyroscope readings fit the final inclination computed from the accelerometer readings) and penalization (e.g., penalize solutions for which the final velocity is not null, assuming that the sensor unit 10 is stable at the end of the trajectory).

Referring to FIG. 2, a system for defining a femoral coordinate system with respect to a MEMS-based sensor unit, is generally shown at 100, and comprises the sensor unit 10 equipped with the gyroscope sensor 12 and the accelerometer sensor 14. The sensor unit 10 is fixed to the femur A, for instance as described for method 1.

A CAS processing unit 102 receives the readings from the sensor unit 10 to define the femoral coordinate system, i.e., a relation between the femur and the orientation of the sensor unit 10 is defined for subsequently tracking the femur from the readings of the sensor unit 10. The CAS processing unit 102 comprises a processor and appropriate applications to define the femoral coordinate system, for instance as described by method 1.

The processing unit 102 comprises a gyroscope data calculator 104. The gyroscope data calculator 104 calculates an initial sensor orientation and thus calculated accelerations along the three axes of the gyroscope sensor 12, when the femur moves in the manner described for method 1. In order to calculate these parameters, the processing unit 102 must use estimate values for an initial sensor orientation (e.g., in the 2 degrees of freedom λ₁ and λ₂) and for an initial femur radius. In one embodiment, these estimate values are provided by the estimate value database 106. Because of errors due to noise on gyroscope readings and of the acquisition times, the accelerations may need to be filtered to reduce the ripples. A zero-phase low-pass filter may be used, but other filter types may be used as well.

The accelerometer data calculator 108 receives readings from the accelerometer sensor 14, and calculates the measured accelerations for the sensor unit 10.

The calculated accelerations from the gyroscope data calculator 104, and the measured accelerations from the accelerometer data calculator 108 are compared by the acceleration comparator 110. Accordingly, the acceleration comparator 110 measures a validity of the estimate values in producing a solution cost. The solution cost is then used in a numerical optimization application 112 by the acceleration comparator 110, to obtain the sensor orientation relative to the femur, and thus to define the femoral coordinate system for subsequent tracking with readings of the sensor unit 10. Additionally, the acceleration comparator 110 may calculate other surgical parameters, such as a real trajectory of the femur and the radius of the femur.

A sensor orientation interface 114 displays data pertaining to the femoral coordinate system. The interface 114 may be a monitor, indicator lights, sound signals, that provide orientation data related to the relation between the femur and tracked tools. 

The invention claimed is:
 1. A method for tracking a femoral frame of reference with a sensor unit comprising an accelerometer sensor and a gyroscope sensor configured to move concurrently with a femur, comprising: obtaining, with at least one processor of a processing unit, gyroscope readings and accelerometer readings resulting from movements of the femur; calculating, with the at least one processor of the processing unit, acceleration data at least from the gyroscope readings, the acceleration data representative of the movements of the femur; measuring with the at least one processor of the processing unit, additional acceleration data from the accelerometer readings, the additional acceleration data representative of the movements of the femur; relating with the at least one processor of the processing unit, an orientation of the sensor unit to the femur using a comparison between the calculated and the measured acceleration data to define a femoral frame of reference; and tracking with the at least one processor of the processing unit, the femoral frame of reference from the gyroscope readings and from the accelerometer readings.
 2. The method according to claim 1, wherein calculating acceleration data includes calculating a tangential acceleration using estimate values for a trajectory of the femur and a radius of the femur.
 3. The method according to claim 1, wherein calculating acceleration data and using the comparison includes calculating a tangential acceleration using an estimate value for a radius of the femur for deducting a centripetal acceleration from the gyroscope readings, and obtaining an orientation of the gyroscope to deduct an effect of gravity from the accelerometer readings.
 4. The method according to claim 1, wherein relating an orientation comprises performing a numerical optimization using the comparison to obtain an orientation of the sensor unit with respect to the femur.
 5. The method according to claim 1, further comprising calculating at least one of a radius of the femur and a trajectory of the femur from the frame of reference.
 6. The method according to claim 1, wherein defining the femoral frame of reference comprises defining a three-axis coordinate system.
 7. The method according to claim 1, wherein the method is performed on a bone model or cadaver.
 8. The method according to claim 1, wherein obtaining gyroscope readings and accelerometer readings resulting from movements of the femur includes obtaining gyroscope readings and accelerometer readings from the sensor unit at a knee mechanical entry point.
 9. The method according to claim 8, wherein relating an orientation of the sensor unit to the femur using the comparison includes making a center of the femoral head a center of a sphere with the knee mechanical entry point being a radius of the sphere.
 10. The method according to claim 1, further including displaying the femoral frame of reference as axes representative of the femur relative to a coordinate system.
 11. A system for tracking a femoral frame of reference in computer-assisted surgery, comprising a sensor unit adapted to be secured to the femur, the sensor unit comprising an accelerometer sensor and a gyroscope sensor both producing orientation data; and a processing unit receiving gyroscope data and accelerometer data and configured for executing the method according to claim
 1. 12. A method for tracking a femoral frame of reference with a sensor unit comprising an accelerometer sensor and a gyroscope sensor configured to move concurrently with a femur, comprising: obtaining, with at least one processor of a processing unit, gyroscope readings and accelerometer readings resulting from movements of the femur; calculating, with the at least one processor of the processing unit, acceleration data at least from the gyroscope readings, the acceleration data representative of the movements of the femur; measuring with the at least one processor of the processing unit, additional acceleration data from the accelerometer readings, the additional acceleration data representative of the movements of the femur; relating with the at least one processor of the processing unit, an orientation of the sensor unit to the femur using a comparison between the calculated and the measured acceleration data to define a femoral frame of reference; and tracking with the at least one processor of the processing unit, the femoral frame of reference from the gyroscope readings and from the accelerometer readings; wherein calculating the acceleration data includes calculating a tangential acceleration using estimate values for a trajectory of the femur and a radius of the femur.
 13. A method for tracking a femoral frame of reference with a sensor unit comprising an accelerometer sensor and a gyroscope sensor configured to move concurrently with a femur, comprising: obtaining, with at least one processor of a processing unit, gyroscope readings and accelerometer readings resulting from movements of the femur; calculating, with the at least one processor of the processing unit, acceleration data at least from the gyroscope readings, the acceleration data representative of the movements of the femur; measuring with the at least one processor of the processing unit, additional acceleration data from the accelerometer readings, the additional acceleration data representative of the movements of the femur; relating with the at least one processor of the processing unit, an orientation of the sensor unit to the femur using a comparison between the calculated and the measured acceleration data to define a femoral frame of reference; and tracking with the at least one processor of the processing unit, the femoral frame of reference from the gyroscope readings and from the accelerometer readings; wherein calculating acceleration data and using the comparison includes calculating a tangential acceleration using an estimate value for a radius of the femur for deducting a centripetal acceleration from the gyroscope readings, and obtaining an orientation of the gyroscope to deduct an effect of gravity from the accelerometer readings. 